<template>
  <div>用户详情2</div>
  {{ detail }}
</template>

<script setup>
import { useRoute } from "vue-router";
import { getUserDetail } from "../../service/user";
import { ref } from "vue";

const route = useRoute();
const detail = ref({});
const getDetailData = async () => {
  const res = await getUserDetail(route.query.id);
  detail.value = res.data;
};
getDetailData();
</script>

<style></style>
